package com.hoshiicloud.saleorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支付订单
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("payorder")
public class Payorder extends Model<Payorder> {

    @TableField("id")
    private Long id;

    /**
    * 流水ID  来源 paylist
    */
    @TableField("pay_list_id")
    private Long payListId;


    /**
    * 买家ID
    */
    @TableField("user_id")
    private Long userId;


    /**
    * 联合支付订单号
    */
    @TableField("pay_order_no")
    private String payOrderNo;


    /**
    * 1-消费 2-退款
    */
    @TableField("type")
    private Integer type;


    /**
    * 支付日期时间
    */
    @TableField("pay_time")
    private LocalDateTime payTime;


    /**
    * 支付金额
    */
    @TableField("pay_amount")
    private BigDecimal payAmount;


    /**
    * 建立人
    */
    @TableField("created_by")
    private String createdBy;


    /**
    * 建立时间
    */
    @TableField("created_time")
    private LocalDateTime createdTime;


    /**
    * 修改人
    */
    @TableField("updated_by")
    private String updatedBy;


    /**
    * 修改时间
    */
    @TableField("updated_time")
    private LocalDateTime updatedTime;


    /**
    * 状态 1-t已成交 0-未成交
    */
    @TableField("status")
    private Integer status;



}
